export default{
	state:{
		currentLocation:'正在定位'

	},
	
	getters:{
		currentLocation:()=> {state.currentLocation}

	},
	
	mutations:{
		getCurrentLocation:(state,payload)=>{state.currentLocation=payload}

	},
	// 可以用来操作异步ajax请求
	actions:{
		getCurrentLocation:({commit},payload)=>{commit('currentLocation',payload)}

	}
}
